import CloudIcons from '@/assets/ImageUrlConfig'

Component({
	properties: {
		show: {
			type: Boolean,
			value: false,
		},
		status: {
			type: Object,
			value: {},
		},
	},
	observers: {},
	data: {
		Align: [
			{ icon: CloudIcons.alignLeft, value: 'left' },
			{ icon: CloudIcons.alignCenter, value: 'center' },
			{ icon: CloudIcons.alignRight, value: 'right' },
			{ icon: CloudIcons.alignJustify, value: 'justify' },
		],
	},
	methods: {
		onCatchtouchend(e) {
			const align = e.currentTarget.dataset.align
			this.triggerEvent('format', {
				key: 'align',
				data: align,
			})
		},
	},
})
